package Tests;
import junit.framework.Assert;
import org.junit.Test;
import Core.*;


public class CharacterCareerImplTests
{
	@Test
	public void TracksLevels()
	{
		CharacterCareer career = new CharacterCareerImpl();
		CharacterClass firstClass = new CharacterClassImpl();
		CharacterClass secondClass = new CharacterClassImpl();

		firstClass.setName("first");
		firstClass.setName("second");
		
		career.levelUp(firstClass);
		career.levelUp(firstClass);
		career.levelUp(secondClass);
		career.levelUp(secondClass);
		career.levelUp(firstClass);
		
		Assert.assertEquals("Character didn't have three levels in the first class", 3, career.getLevelsIn(firstClass));
		Assert.assertEquals("Character didn't have two levels in the second class", 2, career.getLevelsIn(secondClass));
	}
}
